import {NgModule} from '@angular/core';
import {MessageRegister, MessageRegisterModule, TableComponent} from '../../../ng-tools';
import {MenuItemComponent} from '../../components/main/menu/menu-item/menu-item.component';

import {NavbarComponent} from '../../components/main/navbar/navbar.component';

import {ContentComponent} from '../../components/main/content/content.component';
import {LoginComponent} from '../../components/login/login.component';
import {MainComponent} from '../../components/main/main.component';


const messageRegister: MessageRegister[] = [
  {name: 'menu item loaded', from: [MenuItemComponent], to: [MenuItemComponent]},
  {name: 'route navigation end', from: [MenuItemComponent], to: [MenuItemComponent]},
  {name: 'menu item clicked', from: [MenuItemComponent], to: [MenuItemComponent]},
  {
    name: 'ng tools table btn clicked',
    from: [TableComponent],
    to: [
    ]
  },
  {
    name: 'warning cleared',
    from: [],
    to: [NavbarComponent]
  },
  {
    name: 'breadcrumb changed',
    from: 'ALL',
    to: [ContentComponent]
  },
  {
    name: 'page load progress',
    to: [ContentComponent],
    from: 'ALL'
  },
  {
    name: 'sign out to login',
    from: [MainComponent],
    to: [LoginComponent]
  },

];

@NgModule({
  exports: [MessageRegisterModule],
  imports: [MessageRegisterModule.forRoot(messageRegister)]
})
export class AppMessageRegisterModule {
}
